<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="../lib/vue.js"></script>
    <div id="app">
      <table border="1" id="tb-data" align="center">
        <thead>
          <tr>
            <th>名字</th>
            <th>年龄</th>
          </tr>
        </thead>
        <tbody>
          <tr v-for="item in items">
            <td>{{item.name}}</td>
            <td>{{item.age}}</td>
          </tr>
        </tbody>
      </table>
    </div>
    <script>
      new Vue({
        el: '#app',
        data: {
          items: [
            { name: '嬴政', age: 21 },
            { name: '韩非', age: 22 },
            { name: '章邯', age: 32 },
          ],
        },
      })
    </script>
  </body>
</html>
